import request from '@/utils/request.js'

//sale
export const getcateBarData = ()=>{
    return request.get('/api/homePage/storeSales')
}

//check
export const getCollegePieData = ()=>{
    return request.get('/homeData/getCollegePieData')
}

//add
export const getRecentAdd = ()=>{
    return request.get('/homeData/getRecentAdd')
}

//issue
export const getRecentIssue = ()=>{
    return request.get('/homeData/getRecentIssue')
}




//获取所有门店
export const getAllStores = (page, pageSize)=>{
    return request.get(`/api/store/page=${page}&pageSize=${pageSize}`)
}

//食安等级
export const getSavetylevel = ()=>{
    return request.get(`/api/homePage/foodSafetyLevel`)
}

//检查管理
export const getCheck = ()=>{
    return request.get('/api/homePage/inspectionCount')
}

//最新检查
export const getRecentCheck = ()=>{
    return request.get('/api/homePage/latestInspection')
}

//消费评价
export const getComments = ()=>{
  return request.get('/api/homePage/commentCount')
}

//中间数据
export const getMiddleData = ()=>{
  return request.get('/api/homePage/middleData')
}

